package org.example.Map;

import java.util.Map;
import java.util.Set;
import java.util.TreeMap;

public class TreeMapTest {
    public static void main(String[] args) {
        Map<Integer,String> map = new TreeMap<>();
        map.put(10,"a");
//        map.put(null,"b");
        map.put(4,"c");
        map.put(20,"d");
        map.put(100,"e");



        Set<Map.Entry<Integer, String>> entries = map.entrySet();
        for (Map.Entry<Integer,String> entry : entries){
            System.out.println(entry);
        }
    }
}
